package org.lyh.gift.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneCodeDto {
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "")
    private String phone;
    @NotNull(message = "图形验证码不能为空")
    private String imgCode;
    @NotNull(message = "手机号不能为空")
    private String uuid;
    @NotNull(message = "验证码类型不能为空")
    /*验证码的类型*/
    private String type;
}
